import 'package:flutter/material.dart';
import 'package:get/get.dart';

class DutyManagerController extends GetxController
    with GetSingleTickerProviderStateMixin {
  /// TabController 变量
  late TabController tabController;
  RxBool isShow = false.obs;

  @override
  void onInit() {
    super.onInit();
    //初始化tabController
    tabController = TabController(vsync: this, length: 2);
    tabController.addListener(() {
      if (tabController.index == 1) {
        isShow.value = true;
      } else {
        isShow.value = false;
      }
    });
  }
}
